package com.acegear.horizon.domain.repository.jpa;

import com.acegear.horizon.domain.models.jpa.UserEmail;

import org.springframework.data.repository.CrudRepository;

import java.util.Optional;

/**
 * Created by wangsike on 2016/12/10.
 */
public interface UserEmailRepository extends CrudRepository<UserEmail, Long> {
    Optional<UserEmail> findByUserId(Long userId);

    Optional<UserEmail> findByEmail(String email);
}
